package review.logic;

import java.util.ArrayList;

import testrunner.core.TestRunner;

import review.data.ReviewForPhotographer;
import review.data.ReviewForOffer;
import review.ui.TesterDecision;

public class ReviewTests {
	
	int startSize;
	
	public void run(ArrayList<String> codeInjection, int codeInjectionSize) {
		String testerDecision = getTestDecisiosFromUser();
		switch(testerDecision){
		case "reviewForPhotographer":
			ReviewForPhotographer reviewForPhotographer = new ReviewForPhotographer();
			reviewForPhotographer.runTests(codeInjection, codeInjectionSize);
			break;
		case "reviewForOffer":
			ReviewForOffer reviewForOffer = new ReviewForOffer();
			reviewForOffer.runTests(codeInjection, codeInjectionSize);
			break;
		default:
			TestRunner testRunner = new TestRunner();
			try {
				testRunner.run();
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
	}

	private String getTestDecisiosFromUser() {
		TesterDecision testsDecision = new TesterDecision();
		String decision = testsDecision.getTesterDecision();
		return decision;
	}
	


}
